from django.db import models

class Point(models.Model):
    "Identifys where the minimal unit of location"
    x = models.PositiveIntegerField()
    y = models.PositiveIntegerField()

    def __unicode__(self):
        return '(%s, %s)' % (self.x, self.y)

class Unit(models.Model):
    "Battle unit that fires and can take damage"
    size = models.ForeignKey(Point)
